package com.zx.jhpt.util;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.zx.jhpt.po.Fxfkjz;

public class FxdCache {
	private static Map<String, Fxfkjz> map = new HashMap<String, Fxfkjz>();
	
	private static List<Fxfkjz> fxfkjzs; 
	
	public static Fxfkjz get(String id){
		return map.get(id);
	}
	
	public static void init(List<Fxfkjz> fxfkjzs1){
		fxfkjzs = fxfkjzs1;
		for (Fxfkjz fxfkjz : fxfkjzs1) {
			map.put(fxfkjz.getId(),fxfkjz);
		}
	}
	
	public static List<Fxfkjz> getList(){
		return fxfkjzs;
	}
}
